<h2>Inventarisasi Fisik Tanah</h2>
<br clear="all"/>

<?php $no=1 ?>
<table class="table tablepager">
    <thead>
        <tr>
            <th width="10px">No.</th>
            <th width="50px">Kode</th>
            <th width="150px">Nama</th>
            <th width="100px">Alamat</th>
            <th width="50px">Tanggal<br>Perolehan</th>
            <th width="50px">Luas<br>(M<?php echo persegi()?>)</th>
            <th width="100px">Keterangan</th>
            <th width="120px">Aksi</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach($data as $detail): ?>
        <tr>
            <td class="center"><?php echo $no++ ?></td>
            <td class="center"><?php echo $detail['kode_tanah'] ?></td>
            <td><?php echo strtoupper($detail['nama_tanah']) ?></td>
            <td><?php echo $detail['alamat'] ?></td>
            <td class="center"><?php echo tanggal_indonesia_pendek($detail['tanggal_perolehan']) ?></td>
            <td class="right"><?php echo angka($detail['luas'])?></td>
            <td><?php echo $detail['keterangan']?></td>
            <td class="center">
                    <?php echo anchor("sapras/tanah/detail/".$detail['kode_tanah'],"detail") ?> |
                    <?php echo anchor("sapras/tanah/edit/".$detail['kode_tanah'],"edit") ?> | 
                    <?php echo anchor("sapras/tanah/delete/".$detail['kode_tanah'],"delete",array("onclick"=>"return confirm('Apakah Anda yakin akan menghapus data ini?')")) ?>
            </td>

        </tr>
    </tbody>
    <?php endforeach ?>
</table>
<?php $this->load->view("elements/pager") ?>
<?php echo anchor("sapras/tanah/add", "Tambah Inventaris Tanah", array("class"=>"button")) ?>